package com.itheima.tanhua.api.mongodb;


import com.itheima.tanhua.enums.CommentType;
import com.itheima.tanhua.pojo.mongo.Comment;
import org.springframework.stereotype.Service;

import java.util.List;


public interface CommentApi {


    List<Comment> findComments(Integer page, Integer pagesize, String movementId, CommentType comment);

    /**
     * 添加评论集合表
     * @param comment
     */
    Integer saveComment(Comment comment);


    boolean isComment(String movementId, Long uid, CommentType commentType);

    /**
     * 删除此条数据
     */
    Integer deleteComment(Comment comment);
}
